//
// Created by 田建昆 on 2020/12/10.
//

#ifndef CODEBASE_SORT_H
#define CODEBASE_SORT_H

#include <stdio.h>
#include <stdlib.h>

#define swap(a, b) {if ((a)!=(b)){(a)=(a)+(b); (b) = (a)-(b); (a) = (a)-(b);}};
#define min(a, b) (a) > (b) ? (b) : (a)

void selection(int arr[], int size);

void insertion(int arr[], int size);

void shell(int arr[], int size);

void bu_merge(int arr[], int size);

void td_merge(int arr[], int size);

void quick(int arr[], int size);

void heap(int arr[], int size);

#endif //CODEBASE_SORT_H
